/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ro.tni.sessionbeans;

import entities.Dude;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author radus
 */
@Stateless(name="PersisterDAO")
public class PersisterDAO implements PersisterDAOLocal {

    @PersistenceContext(unitName="default_persistence_unit")
    EntityManager em;
    
    @Override
    public void persist(Dude d) {
        
        em.persist(d);
        
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    
}
